import request from '@/utils/request'

// 查询消息订单数据列表
export function listRecord(query) {
  return request({
    url: '/data_manage/record/list',
    method: 'get',
    params: query
  })
}

// 查询消息订单数据详细
export function getRecord(id) {
  return request({
    url: `/data_manage/record/${id}`,
    method: 'get'
  })
}

// 新增消息订单数据
export function addRecord(data) {
  return request({
    url: '/data_manage/record',
    method: 'post',
    data: data
  })
}

// 修改消息订单数据
export function updateRecord(data) {
  return request({
    url: '/data_manage/record',
    method: 'put',
    data: data
  })
}

// 删除消息订单数据
export function delRecord(id) {
  return request({
    url: `/data_manage/record/${id}`,
    method: 'delete'
  })
}
